MI-108 replaced customerImpersonation section in root readMe#86
MI-108 replaced customerImpersonation section in root readMe#86
Conversation
|
|
||
| The customer impersonation token is used along with the header `x-bc-customer-id: {bcCustomerId}` to make customer specific requests to BC Graphql API. the alternative is to use the `SHOP_TOKEN` cookie that is returned after making the login mutation to BC Graphql. | ||
|
|
||
| To create the token the `createCustomerImpersonationToken` function makes a POST request to BigCommerce's API endpoint `/v3/storefront/api-token-customer-impersonation`. The token is cached using the `getDataFromMeshCache` utility function. By default, the token is cached for 24 hours (86400000 milliseconds) as defined in `CACHE_ITEMS_TTL`. |
There was a problem hiding this comment.
This section should be focused on how to get a token using the BigCommerceTokenService, not implementation details. You might need to merge in the version/bigcommerce-1.1.0 branch.
There was a problem hiding this comment.
We want to merge version/bigcommerce-1.1.0 into main?
Or we want to merge this readMe update into version/bigcommerce-1.1.0?
There was a problem hiding this comment.
Merge version/bigcommerce-1.1.0 in to chore/MI-108-update-readMe
There was a problem hiding this comment.
So i should have originally branched from version/bigcommerce-1.1.0 and then we would merge back into it?
There was a problem hiding this comment.
I don't think it matters? Just need to get this set of diffs to be relative to the latest state of the code.
Description of the proposed changes
Updated the details about customerImpersonationToken in the root readMe